# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-plaso
_pkgname=plaso
pkgver=20201007
pkgrel=7
pkgdesc='Super timeline all the things.'
arch=('x86_64' 'aarch64')
url='https://github.com/log2timeline/plaso'
license=('Apache')
depends=('python' 'python-artifacts' 'python-bencode.py' 'python-biplist'
         'python-certifi' 'python-chardet' 'python-dfdatetime' 'python-dfvfs'
         'python-dfwinreg' 'python-dtfabric' 'python-efilter' 'python-redis'
         'python-elasticsearch' 'python-future' 'python-idna'
         'python-libbde-python' 'python-libesedb-python' 'python-libevt-python'
         'python-libevtx-python' 'python-libewf-python' 'python-libcreg-python'
         'python-libfsapfs-python' 'python-libfsntfs-python'
         'python-libfvde-python' 'python-libfwnt-python' 'python-libfwsi-python'
         'python-liblnk-python' 'python-libmsiecf-python'
         'python-libolecf-python' 'python-libqcow-python' 'python-dateutil'
         'python-libregf-python' 'python-libscca-python' 'python-pyparsing'
         'python-libsigscan-python' 'python-libsmdev-python' 'python-pyaml'
         'python-libsmraw-python' 'python-libvhdi-python' 'python-defusedxml'
         'python-libvmdk-python' 'python-libvshadow-python'
         'python-libvslvm-python' 'python-lz4' 'python-pefile' 'python-pip'
         'python-psutil' 'python-pycryptodome' 'python-pytsk3' 'python-pytz'
         'python-pyzmq' 'python-requests' 'python-six' 'python-urllib3'
         'python-xlsxwriter' 'python-yara-python-dex' 'python-cryptography'
         'python-libluksde-python')
makedepends=('python-setuptools')
conflicts=('python2-plaso')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('edc92eade8e263de36261b8a628bbb47b63cf3405bfb1592f0c1253a4500d93dadd1665018cc33794effbfe1ae9a00ee379612f8ab7d2d763868563ca6145555')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package_python-plaso() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

